import { createApp } from "vue";
import "./style.less";
import "./global.css";
import App from "./App.vue";
// 1. 引入你需要的Vant组件
import {
  Button,
  ConfigProvider,
  NavBar,
  PullRefresh,
  Tabbar,
  TabbarItem,
} from "vant";
import { createPinia } from "pinia";
import routes from "./router/index";
// 2. 引入Vant组件样式
import "vant/lib/index.css";

const app = createApp(App);
// 3. 注册你需要的组件
app.use(routes);
app.use(createPinia());
app
  .use(ConfigProvider)
  .use(Button)
  .use(NavBar)
  .use(PullRefresh)
  .use(Tabbar)
  .use(TabbarItem);
app.mount("#app");
